import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";
import { ReqPage, ResPage } from "../interface";
/**
 * @name 分页查询角色
 */
export const page = (params: SysFile.ReqSysFile) => {
  return http.get<ResPage<SysFile.ResSysFile>>(PORT1 + `/system/sys-file/page`, params);
};

export namespace SysFile {
  export interface ResSysFile {
    id: number;
    fileName: string;
    fileType: string;
    filePath: string;
    fileSize: number;
    createBy: number;
    createTime: Date;
    updateBy: number;
    updateTime: Date;
    isDeleted: number;
  }
  export interface ReqSysFile extends ReqPage {
    id: number;
    fileName: string;
    fileType: string;
    filePath: string;
    fileSize: number;
    createBy: number;
    createTime: Date;
    updateBy: number;
    updateTime: Date;
    isDeleted: number;
  }
}
